{extend name="base" /}
{block name="body"}
<div class="layui-card">
    <div class="layui-card-body">
            <form action="{:request()->url()}" class="layui-form" method="post">
            <div class="layui-form-item">
                <label class="layui-form-label">* 用户名</label>
                <div class="layui-input-inline">
                    <input type="text" name="user_name" value="{$data.user_name|default=''}" autocomplete="off" placeholder="请输入用户名" lay-verify="required|user_name" class="layui-input">
                </div>
                <div class="layui-form-mid layui-word-aux">字母、下划线、数字</div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">姓名</label>
                <div class="layui-input-inline">
                    <input type="text" name="nick_name" value="{$data.nick_name|default=''}" autocomplete="off" placeholder="请输入姓名"  lay-verify="required|nick_name" class="layui-input">
                </div>
                <div class="layui-form-mid layui-word-aux">管理员姓名</div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">手机号</label>
                <div class="layui-input-inline">
                    <input type="text" name="mobile_phone" value="{$data.mobile_phone|default=''}" autocomplete="off" placeholder="请输入手机号" lay-verify="mobile_phone" class="layui-input">
                </div>
                <div class="layui-form-mid layui-word-aux">手机号</div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">用户组</label>
                <div class="layui-input-inline">
                    <select name="group_id">
                        <option value="">请选择...</option>
                        {foreach name="authGroup" item="v"}
                        <option value="{$v.id}" {if condition="isset($data) and $data.group_id eq $v.id"}selected="selected"{/if}>{$v.name}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-filter="i" lay-submit="">保存</button>
                    <button class="layui-btn layui-btn-primary" type="reset">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}
